<template>
	<view>
		<RichTextEditor
			v-model="WatchValue"
			:init="$tinymce.config()"
		/>
	</view>
</template>

<script>
	import Editor from '../tinymce/tinymce-vue'
	export default {
		props:{
			value:String
		},
		components: {
		    'RichTextEditor': Editor
		},
		data() {
			return {
				WatchValue:this.value
			};
		},
		watch:{
			WatchValue(value){
				this.$emit('change',value)
			}
		}
	}
</script>

<style>

</style>
